package cn.qiyu5522.tk_ems.controller.admin;


import cn.qiyu5522.tk_ems.service.UserRoleService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Tonkey
 * @since 2023-02-22
 */
@Api(tags = "用户角色关联表")
@RestController
@RequestMapping("/user-role")
public class UserRoleController {

    @Resource
    private UserRoleService userRoleService;

//    @ApiOperation("")
//    @ApiImplicitParam(name = "menuDTO", value = "菜单实体类对象", required = true, defaultValue = "{}", dataTypeClass = MenuDTO.class)
//    @PutMapping("/edit")
//    public R edit(@Validated(Menu.Update.class) @RequestBody MenuDTO menuDTO) {
//        Menu menu = new Menu();
//        BeanUtils.copyProperties(menuDTO,menu);
//        boolean b = menuService.updateById(menu);
//        return b ? R.ok().message("编辑成功") : R.error().message("编辑失败");
//    }
}
